import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';
@Entity()
export class Comment {
  @PrimaryGeneratedColumn()
  id: number;
  @Column()
  nickName: string;
  @Column()
  avatarUrl: string;
  @Column()
  info: string;
  @Column()
  roomId: number;
  @Column({ nullable: true })
  reply: string;
  @Column({ default: 0 })
  isTop: number;
  @CreateDateColumn({ name: 'update_time' })
  createTime: Date;
}
